<include file="top" />

<script language="javascript">
 function getValue()
 {
  var s = "";
  for(var i=0;i<form1.relative_product.options.length;i++)
  {
   if(form1.relative_product.options[i].selected)
   {
    s+=form1.relative_product.options[i].value;
    s+=',';
   }
  }
  form1.rp.value=s;
 }
</script>

<div id="right">
	<h3>修改产品信息</h3>
	<form method="post" enctype="multipart/form-data" id="form1">
		<table width="98%" border="0" class="table">
			<tr>
				<td width="16%">*所属栏目：</td>
				<td width="84%"><{$product.cate_data.big_category_name}> <input
					type="hidden" value="<{$product.id}>" name="product_id"> <input
					type="hidden" value="<{$product.pid}>" name="pid">
				</td>
			</tr>
			<tr>
				<td width="16%">选择哪个分类显示：</td>
				<td width="84%"><select name="cid">
						<option value="0">请选择</option>
						<volist name="ac_data" id="cate">
						<option value="<{$cate.id}>"
							<if condition="$product['cid'] eq $cate['id']">selected="selected"</if>
							><{$cate.big_category_name}>--<{$cate.classify_name}>
						</option>
						</volist>

				</select></td>
			</tr>
			<tr>
				<td width="16%">*产品名称：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="product_name" value="<{$product.product_name}>"></td>
			</tr>
			<tr>
				<td width="16%">用于文章分类的产品名称：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="classify_name" value="<{$product.classify_name}>"></td>
			</tr>
			<tr>
				<td width="16%">title：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="product_title" value="<{$product.product_title}>"></td>
			</tr>
			<tr>
				<td width="16%">原产品图标：</td>
				<td width="84%"><img
					src="__PUBLIC__/upload/<{$product.small_icon}>"></td>
			</tr>
			<tr>
				<td width="16%">产品图标：</td>
				<td width="84%"><input type="file" name="small_icon"></td>
			</tr>
			<tr>
				<td width="16%">产品页面图：</td>
				<td width="84%"><img
					src="__PUBLIC__/upload/s_<{$product.product_img}>"></td>
			</tr>
			<tr>
				<td width="16%">*产品页面图：</td>
				<td width="84%"><input type="file" name="t_img">（用于首页中间两个产品和具体产品页面）
				</td>
			</tr>
			<tr>
				<td width="16%">产品列表图：</td>
				<td width="84%"><img
					src="__PUBLIC__/upload/s_<{$product.three_img}>"></td>
			</tr>
			<tr>
				<td width="16%">*产品列表图：</td>
				<td width="84%"><input type="file" name="three_img">（用于产品列表）
				</td>
			</tr>
			<tr>
				<td width="16%">首页产品图：</td>
				<td width="84%"><img
					src="__PUBLIC__/upload/s_<{$product.sec_img}>"></td>
			</tr>
			<tr>
				<td width="16%">首页产品图：</td>
				<td width="84%"><input type="file" name="sec_img">（用于首页那上面四个产品）
				</td>
			</tr>
			<tr>
				<td width="16%">产品页上面图片：</td>
				<td width="84%"><img
					src="__PUBLIC__/upload/s_<{$product.pimg}>"></td>
			</tr>
			<tr>
				<td width="16%">产品页上面图片：</td>
				<td width="84%"><input type="file" name="pimg"></td>
			</tr>
			<tr>
				<td width="16%">产品页上面图片链接：</td>
				<td width="84%"><input type="text" class="wid" name="img_link"
					value="<{$product.img_link}>"></td>
			</tr>
			<tr>
				<td width="16%">how it work 链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="work_link" value="<{$product.work_link}>"></td>
			</tr>
			<tr>
				<td width="16%">keywords：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="product_keyword" value="<{$product.product_keyword}>"></td>
			</tr>
			<tr>
				<td width="16%">更改静态化名字：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="statice_name" value="<{$product.statice_name}>"></td>
			</tr>
			<tr>
				<td width="16%">购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="buy_link" value="<{$product.buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%">下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="download_link" value="<{$product.download_link}>"></td>
			</tr>

			<tr>
				<td width="16%">第二购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="sec_buy_link" value="<{$product.sec_buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%">第二下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="sec_download_link" value="<{$product.sec_download_link}>"></td>
			</tr>
			<tr>
				<td width="16%">按钮1文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="button_one_word" value="<{$product.button_one_word}>"></td>
			</tr>
			<tr>
				<td width="16%">按钮2文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					name="button_two_word" value="<{$product.button_two_word}>"></td>
			</tr>



			<tr>
				<td width="16%">只有一个下载链接：</td>
				<td width="84%"><input type="radio" name="one_download_link"
					value="1"
				<if condition="$product.one_download_link eq 1">checked="checked"</if>>是
					<input type="radio" name="one_download_link" value="0"
				<if condition="$product.one_download_link eq 0">checked="checked"</if>>否
				</td>
			</tr>
			<tr>
				<td width="16%">for windows or mac：</td>
				<td width="84%"><input type="radio" value="0"
				<if condition="$product.pc eq 0">checked="checked"</if>
					name="pc">不显示 <input type="radio" value="1"
				<if condition="$product.pc eq 1">checked="checked"</if>
					name="pc">for windows <input type="radio" value="2"
				<if condition="$product.pc eq 2">checked="checked"</if>
					name="pc">for mac</td>
			</tr>
			<tr>
				<td width="16%">for windows or mac外链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid"
					value="<{$product.out_link}>" name="out_link"></td>
			</tr>
			<tr>
				<td width="16%">价格下降幅度：</td>
				<td width="84%"><input type="text" class="wid"
					value="<{$product.price_down_range}>" name="price_down_range">以百分号表示
				</td>
			</tr>
			<tr>
				<td width="16%">是否流行：</td>
				<td width="84%"><input type="radio" value="1"
				<if condition="$product['is_popular'] eq 1">checked="checked"</if>
					name="is_popular">是 <input type="radio" value="0" name="is_popular"
				<if condition="$product['is_popular'] eq 0">checked="checked"</if>>否
				</td>
			</tr>
			<tr>
				<td width="16%">是否热卖：（首页产品）</td>
				<td width="84%"><input type="radio" value="1"
				<if condition="$product['is_hot'] eq 1">checked="checked"</if>
					name="is_hot">是 <input type="radio" value="0"
				<if condition="$product['is_hot'] eq 0">checked="checked"</if>
					name="is_hot">否</td>
			</tr>
			<tr>
				<td width="16%">是否热评论：（产品页显示热卖图标）</td>
				<td width="84%"><input type="radio" value="1"
				<if condition="$product['hot_show'] eq 1">checked="checked"</if>
					name="hot_show">是 <input type="radio" value="0"
				<if condition="$product['hot_show'] eq 0">checked="checked"</if>
					name="hot_show">否</td>
			</tr>
			<tr>
				<td width="16%">是否新增：</td>
				<td width="84%"><input type="radio" value="1"
				<if condition="$product['is_new'] eq 1">checked="checked"</if>
					name="is_new">是 <input type="radio" value="0"
				<if condition="$product['is_new'] eq 0">checked="checked"</if>
					name="is_new">否</td>
			</tr>
			<tr>
				<td width="16%">版本号：</td>
				<td width="84%"><input type="text" name="version"
					value="<{$product.version}>"></td>
			</tr>
			<tr>
				<td width="16%">第二产品版本号：</td>
				<td width="84%"><input type="text" name="sec_version"
					value="<{$product.sec_version}>"></td>
			</tr>
			<tr>
				<td width="16%">市场价：</td>
				<td width="84%"><input type="text" name="market_price"
					value="<{$product.market_price}>"></td>
			</tr>
			<tr>
				<td width="16%">现在价格：</td>
				<td width="84%"><input type="text" name="now_price"
					value="<{$product.now_price}>"></td>
			</tr>
			<tr>
				<td width="16%">第二产品市场价：</td>
				<td width="84%"><input type="text" name="sec_market_price"
					value="<{$product.sec_market_price}>"></td>
			</tr>
			<tr>
				<td width="16%">第二产品现在价格：</td>
				<td width="84%"><input type="text" name="sec_now_price"
					value="<{$product.sec_now_price}>"></td>
			</tr>
			<tr>
				<td width="16%">另一个产品价格：</td>
				<td width="84%"><input type="text" name="other_price"
					value="<{$product.other_price}>"></td>
			</tr>
			<tr>
				<td width="16%">Size：</td>
				<td width="84%"><input type="text" name="size"
					value="<{$product.size}>"></td>
			</tr>
			<tr>
				<td width="16%">星星（默认4.5）：</td>
				<td width="84%"><input type="radio" value="1"
				<if condition="$product['grade'] eq 1">checked="checked"</if>
					name="grade">5<input type="radio" value="0"
				<if condition="$product['grade'] eq 0">checked="checked"</if>
					name="grade">4.5</td>
			</tr>
			<tr>
				<td width="16%">评论数量：</td>
				<td width="84%"><input type="text" name="num"
					value="<{$product.num}>"></td>
			</tr>
			<tr>
				<td width="16%">评论内容：</td>
				<td width="84%"><textarea id="review" name="review"
						style="width: 400px; height: 100px;"><{$product.review}></textarea></td>
			</tr>
			<tr>
				<td width="16%">相关产品：</td>
				<td width="84%"><select name="relative_product"
					id="relative_product" multiple=”multiple”
					style="height: 180px; over-flow: hidden;">
						<volist name="allpro" id="vo">
						<option value="<{$vo.id}>"
							<if condition="$vo['select'] eq 1"> selected="selected"</if>
							><{$vo.big_category_name}>--<{$vo.product_name}>
						</option>
						</volist>
				</select> <input type="hidden" id="rp" name="rp"
					value="<{$product.relative_product}>"></td>
			</tr>
			<tr>
				<td width="16%">seo内容简介：</td>
				<td width="84%"><textarea id="introduce" name="introduce"
						style="width: 400px; height: 100px;"><{$product.introduce}></textarea></td>
			</tr>
			<tr>
				<td width="16%">第二描述：</td>
				<td width="84%"><textarea id="sec_description"
						name="sec_description" style="width: 800px; height: 200px;"><{$product.sec_description}></textarea></td>
			</tr>
			<tr>
				<td width="16%">内容：</td>
				<td width="84%"><textarea id="product_content"
						name="product_content" style="width: 800px; height: 300px;"><{$product.content}></textarea></td>
			</tr>
			<tr>
				<td width="16%">指导教程：</td>
				<td width="84%"><textarea id="product_guide"
						name="product_guide" style="width: 800px; height: 300px;"><{$product.guide}></textarea></td>
			</tr>
			<tr>
				<td width="16%">技术说明：</td>
				<td width="84%"><textarea id="product_tech_spec"
						name="product_tech_spec" style="width: 800px; height: 300px;"><{$product.tech_spec}></textarea></td>
			</tr>
			<tr>
				<td width="16%"></td>
				<td width="84%"><input type="submit" value="提交" name="sub"
					onclick="getValue()" /></td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_content', {
					allowFileManager : true
				});
			});
	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#sec_description', {
					allowFileManager : true
				});
			});

	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_guide', {
					allowFileManager : true
				});
			});

	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_tech_spec', {
					allowFileManager : true
				});
			});

	</script>

</div>
</body>
</html>